package mornd.autowired2;

import org.springframework.context.annotation.Primary;
import org.springframework.stereotype.Component;

/**
 * @author: mornd
 * @dateTime: 2023/5/12 - 17:59
 */
public interface Service {

    @Component("service1")
    class Service1 implements Service {}

    @Primary
    @Component("service2")
    class Service2 implements Service {}

    @Component("service3")
    class Service3 implements Service {}
}
